package com.smart.lx.template;

/**
 * 功能描述: <br>
 * 〈定义个抽象的银行方法〉
 *
 * @since: 1.0.0
 * @Author:abc
 * @Date: 2019/4/6
 */
public  abstract  class Bank {

    //钩子
    private boolean vip = false;
    public void setVIP(boolean vip){
        this.vip = vip;
    }


    public void getCode(Person p){
        if(vip){
            System.out.println(p.getName()+" 直接去大客户区办理业务!");
        }else{
            System.out.println(p.getName() + " 用户已叫号");
        }
    }

    //办理业务抽象;
    public abstract void doBusiness(Person p);

    public void setScore(Person p){
        System.out.println(p.getName() + " 用户已评分");
    }


}
